package org.study.neo4j.boot.config;

import cn.hutool.core.util.IdUtil;
import org.springframework.data.neo4j.core.schema.IdGenerator;

/**
 * 作用描述
 *
 * @author doveylovey
 * @version v1.0.0
 * @email 1135782208@qq.com
 * @date 2025年04月09日
 */
public class MyIdGenerator implements IdGenerator<Long> {
    @Override
    public Long generateId(String primaryLabel, Object entity) {
        return IdUtil.getSnowflakeNextId();
    }
}
